package com.hspedu.poly_.detail_;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/22
 * @time 18:55
 */
public class PolyDetail01 {
    public static void main(String[] args) {
        AA aa = new BB();
        System.out.println(aa instanceof AA);
        System.out.println(aa instanceof BB);
    }
}

class AA{}
class BB extends AA{}
